import request from '../utils/request.js';
//  关于内容
export const postAboutContent = () => {
  return request({
    method: 'post',
    url: '/AboutMessage/findAbout',
  });
};

//  获取关于的评论
export const postAboutCom = () => {
  return request({
    method: 'post',
    url: '/aboutComments/findAllAboutComments',
  });
};
//  发评论
export const postAddAboutCom = (token, content, parentId, toUserId) => {
  return request({
    method: 'post',
    url: '/aboutComments/newAboutComments',
    data: { content: content, parentId: parentId, toUserId: toUserId },
    headers: { Authorization: token },
  });
};
